import request from '@/utils/request'

// 查询报站记录日志列表
export function listAnnouncementLogs(query) {
  return request({
    url: '/bus/announcement-logs/list',
    method: 'get',
    params: query
  })
}

// 查询报站记录日志详细
export function getAnnouncementLogs(id) {
  return request({
    url: '/bus/announcement-logs/' + id,
    method: 'get'
  })
}

// 新增报站记录日志
export function addAnnouncementLogs(data) {
  return request({
    url: '/bus/announcement-logs',
    method: 'post',
    data: data
  })
}

// 修改报站记录日志
export function updateAnnouncementLogs(data) {
  return request({
    url: '/bus/announcement-logs',
    method: 'put',
    data: data
  })
}

// 删除报站记录日志
export function delAnnouncementLogs(id) {
  return request({
    url: '/bus/announcement-logs/' + id,
    method: 'delete'
  })
}

// 导出报站记录日志
export function exportAnnouncementLogs(query) {
  return request({
    url: '/bus/announcement-logs/export',
    method: 'post',
    params: query
  })
}